#include "stdBulletLib.h"

stdBulletLib* stdBulletLib::_instance = 0;

stdBulletLib* stdBulletLib::Instance()
{
	if (_instance == NULL)
	{
		_instance = new stdBulletLib();
	}
	return _instance;
}

stdBulletLib::stdBulletLib()
{
	string str, str1, str2;
	ifstream infile;
	infile.open("gameinformation/bulletInformation/list.txt");
	while (getline(infile, str))
	{
		getline(infile, str1);
		getline(infile, str2);
		_std.push_back(stdBullet(str, str1, str2));
	}
	infile.clear();
	infile.close();
}

stdBullet stdBulletLib::getBullet(int i)
{
	return _std[i];
}